package com.ebelter.ty.utils;


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.widget.LinearLayout;

import com.ebelter.btcomlib.CommonLib;
import com.ebelter.btcomlib.utils.ViewUtils;

public class TyUtils {


    public static void setLinearLayoutChildSelect(LinearLayout ll,boolean isSelect){
        if (ll!=null){
            int count = ll.getChildCount();
            for (int i=0;i<count;i++){
                ViewUtils.setSelect(ll.getChildAt(i),isSelect);
            }
        }
    }

    public static void setLinearLayoutChildSelects(boolean isSelect,LinearLayout... lls){

        for(LinearLayout ll:lls){
            if (ll!=null){
                int count = ll.getChildCount();
                for (int i=0;i<count;i++){
                    ViewUtils.setSelect(ll.getChildAt(i),isSelect);
                }
            }
        }
    }






}
